package com.example.gulimall.order.feign;

import com.example.common.entity.product.SkuInfoEntity;
import com.example.common.entity.product.SpuInfoEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@FeignClient("gulimall-product")
public interface ProductFeignService {


    @PostMapping("product/spuinfo/spuInfoBySkuIds")
    List<SpuInfoEntity> getSpuInfoBySkuIds(@RequestBody List<Long> skuIds);

    SkuInfoEntity getSkuInfo(Long skuId);
}
